package cn.it.ygh.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.it.ygh.mapper.HouseManageMapper;
import cn.it.ygh.pojo.House;
import cn.it.ygh.service.HouseManageService;

@Service("houseManageService")
public class HouseManageServiceImpl implements HouseManageService{

	@Resource
	private HouseManageMapper houseManageMapper;
	@Override
	public List<House> getAllHouse() {
		// TODO Auto-generated method stub
		return houseManageMapper.getAllHouse();
	}

	@Override
	public House getHouseById(int houseId) {
		// TODO Auto-generated method stub
		return houseManageMapper.getHouseById(houseId);
	}

	@Override
	public void addHouse(House House) {
		// TODO Auto-generated method stub
		houseManageMapper.addHouse(House);
	}

	@Override
	public void deleteHouse(int houseId) {
		// TODO Auto-generated method stub
		houseManageMapper.deleteHouse(houseId);
	}

	@Override
	public void batchdeleteHouse(int[] houseIds) {
		// TODO Auto-generated method stub
		houseManageMapper.batchdeleteHouse(houseIds);
	}

	@Override
	public List<House> findHouse(String key) {
		// TODO Auto-generated method stub
		return houseManageMapper.findHouse(key);
	}

}
